
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store'
import noticeBar from "@/components/notice-bar/notice-bar.vue";
import dragButton from "@/components/drag-button/drag-button.vue";
import teacherButton from "@/components/teacher-button/teacher-button.vue";
import customerModal from "@/components/customer-modal/customer-modal.vue";
import teacherModal from "@/components/teacher-modal/teacher-modal.vue";
import phoneSaveModal from "@/components/phone-save-modal/phone-save-modal.vue";
import myPopup from "@/components/my-popup/my-popup.vue";
import bottomBanner from "@/components/bottom-banner/bottom-banner.vue"
import preferentialModal from "@/components/preferential-modal/preferential-modal.vue"
// 配置内容组件
import topBanner from "@/components/top-banner/top-banner.vue"
import bottomRecommend from "@/components/bottom-recommend/bottom-recommend.vue"
import productGetcodeCourse from "@/components/product-getcode-course/product-getcode-course.vue"
import productGetcodeTeacher from "@/components/product-getcode-teacher/product-getcode-teacher.vue"

import VConsole from 'vconsole';

// const vConsole = new VConsole();
// 或者使用配置参数来初始化，详情见文档
 



Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'


// 弹窗组件
Vue.component('my-popup', myPopup);
// 通知免费次数组件
Vue.component('notice-bar', noticeBar);
// 客服按钮
Vue.component('drag-button', dragButton);
// 资讯按钮
Vue.component('teacher-button', teacherButton);
// 客服组件
Vue.component('customer-modal', customerModal);
// 咨询老师
Vue.component('teacher-modal', teacherModal);
// 保存手机号弹窗
Vue.component('phone-save-modal', phoneSaveModal);
// 底部咨询老师浮窗
Vue.component('bottom-banner', bottomBanner);
// 优惠弹窗
Vue.component('preferential-modal', preferentialModal);


// 配置内容组件
// 结果页顶部添加老师
Vue.component('top-banner', topBanner);
// 底部推荐
Vue.component('bottom-recommend', bottomRecommend);
// 挽留页-中部-课程
Vue.component('product-getcode-course', productGetcodeCourse);
// 挽留页-中部-老师
Vue.component('product-getcode-teacher', productGetcodeTeacher);


const app = new Vue({
		store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
	app.use(store)
  return {
    app
  }
}
// #endif